package br.inatel.wiiproject.view;

import java.awt.BorderLayout;

import javax.swing.JLabel;
import javax.swing.JPanel;

public class TitledPanel extends JPanel{

	private static final long serialVersionUID = 1L;

	public TitledPanel(String title, JPanel mainPainel) {
		super();
		JPanel pane = new JPanel();
		pane.add(new JLabel(title));
		this.setLayout(new BorderLayout());
		this.add(pane, BorderLayout.NORTH);
		this.add(mainPainel, BorderLayout.CENTER);
	}

}
